﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:digitizer="clr-namespace:DeepEarth.Toolkit.Controls"
    >
    
    <Style TargetType="digitizer:Digitizer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="digitizer:Digitizer">
                    <StackPanel Orientation="{TemplateBinding Orientation}">                        
                        <ToggleButton x:Name="PART_PointButton" Width="25" Height="25" Command="{Binding AddPushpinCommand, RelativeSource={RelativeSource TemplatedParent}}" ToolTipService.ToolTip="Add Pushpin">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/pin.png"></Image>
                        </ToggleButton>
                        <ToggleButton x:Name="PART_LabelButton" Width="25" Height="25" Command="{Binding AddLabelCommand, RelativeSource={RelativeSource TemplatedParent}}" ToolTipService.ToolTip="Add Label">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/label.png"></Image>
                        </ToggleButton>
                        <ToggleButton x:Name="PART_FreeDrawButton" Width="25" Height="25" Command="{Binding FreeDrawCommand, RelativeSource={RelativeSource TemplatedParent}}" ToolTipService.ToolTip="Free Draw">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/draw.png"></Image>
                        </ToggleButton>
                        <!--<Button Width="25" Height="25" ToolTipService.ToolTip="Change Line Width">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/linethickness.png"></Image>
                        </Button>
                        <Button Width="25" Height="25" ToolTipService.ToolTip="Change Line Color">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/linecolor.png"></Image>
                        </Button>
                        <Button Width="25" Height="25" ToolTipService.ToolTip="Change Fill Color">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/fillcolor.png"></Image>
                        </Button>-->
                        <ToggleButton x:Name="PART_EnableEditButton" Width="25" Height="25"
                                      Command="{Binding EnableEditCommand, RelativeSource={RelativeSource TemplatedParent}}" 
                                      ToolTipService.ToolTip="Enable Edit"
                                      IsChecked="{Binding EditEnabled, RelativeSource={RelativeSource TemplatedParent}}">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/draw.png"></Image>
                        </ToggleButton>
                        <Button x:Name="PART_ClearButton" Width="25" Height="25" Command="{Binding ClearCommand, RelativeSource={RelativeSource TemplatedParent}}" 
                                      ToolTipService.ToolTip="Clear">
                            <Image Source="/DeepEarth.Toolkit.Controls.Digitizer;component/Images/draw.png"></Image>
                        </Button>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



</ResourceDictionary>
